package com.blog.dazi.Controller;

import com.blog.dazi.Service.ChatService;
import com.blog.dazi.Service.TvService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/dazi/tv")
public class TvController {

    @Autowired
    private TvService tvService;

    /**
     * 直播列表
     * @param
     * @param
     * @return
     */
    @GetMapping("/list")
    public List<Map<String,Object>> List(@RequestParam(value = "pageNum" ,required = false,defaultValue = "1") int pageNum, @RequestParam(value = "pageSize" ,required = false,defaultValue = "10") int pageSize){
        return tvService.list(pageNum,pageSize);
    }



}
